package org.spring;

import org.spring.service.ContentService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

/**
 * Hello world!
 *
 */
public class App {
	public static void main(String[] args) {
		ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
		BeanManager beanManager=new BeanManager();
		beanManager.setApplicationContext(context);
        ThreadPoolTaskExecutor taskPool=(ThreadPoolTaskExecutor) beanManager.getBean("taskExecutor");
        Runnable run=new Runnable(){

            @Override
            public void run() {
                System.out.println("gogogo....");
            }
        };

	}
}
